#include"items.h"
//items::items(QString n){
//    i_name=n;
//};
int items::TotalCount=0;
items:: items(QString n,QString l,int num){
    TotalCount++;
    i_name=n;
    location=l;
    this->num=num;
}
items::items(QString n,QString l,int num,QString t):items(n,l,num){
    TotalCount++;
    tag=t;
};
void items::setItem(QString n,QString l,int num,QString t){
    TotalCount++;
    i_name=n;
    location=l;
    this->num=num;
    tag=t;
};
//判断是否为空
bool items::isEmpty(){
    if(TotalCount==0)return 1;
    return 0;
}
//设置名称
void items::setName(QString name){
    i_name=name;
}
//设置标签
void items:: setTag(QString Tag){
    tag=Tag;
}
//设置位置
void items::setLocation(QString L){
    location=L;
}
QString items::getName()const{
    return i_name;
};
QString items::getTag()const{
    return tag;
};
QString items::getLoc()const{
    return location;
};
int items::getNum()const{
    return num;
};
